<%@ page language="java" import="java.util.*"  pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
	<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> 
	<META HTTP-EQUIV="Expires" CONTENT="0"> 
	<title>延边州住房公积金单位网上营业厅</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta http-equiv="Access-Control-Allow-Origin" content="*">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="icon" href="favicon.ico">
	<link rel="stylesheet" href="layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="../../css/font_eolqem241z66flxr.css" media="all" />
	<link rel="stylesheet" href="css/main.css" media="all" />
	<style type="text/css">
		.sp {
			  color: #FFFFFF;
			  float: right;
			  height: 45px;
			  line-height: 45px;
			  overflow: hidden;
			  text-align: center;
			  vertical-align: middle;
			  margin-left:20px;
			}
	</style>
</head>
<body class="main_body">
	<div class="layui-layout layui-layout-admin">
		<!-- 顶部 -->
		<div class="layui-header header">
			<div class="layui-main">
				<a href="#" class="logo" pc>延边州住房公积金单位网上营业厅</a>
				
			    
			    <!-- 顶部右侧菜单 -->
			    <ul class="layui-nav top_menu">
			    	<li class="layui-nav-item" pc>
						<a href="javascript:;" data-url="dwwsyyt/dw/xttz/xttz.html"><i class="layui-icon" data-icon="&#xe645;"></i><cite id="blink">待办事项</cite><span class="layui-badge" id="sp" style="background: rgb(255, 87, 34);padding-left:3px;padding-right:3px;"></span></a>
					</li>
					
					<li class="layui-nav-item" pc>
						<a href="javascript:;">
							<cite>${sessionInfo.getDWMC()}</cite> 
						</a>
						<dl class="layui-nav-child">
							<%-- <dd><a href="javascript:;" data-url="page/user/userInfo.html"><i class="layui-icon" data-icon="&#xe62a;">&#xe62a;</i><cite>个人资料</cite></a></dd>
							<dd><a href="javascript:;" data-url="page/user/changePwd.html"><i class="layui-icon" data-icon="&#xe631;">&#xe631;</i><cite>修改密码</cite></a></dd> --%>
							<dd><a href="javascript:;"  id="tclogin"><i class="layui-icon">&#xe64f;</i><cite>退出营业厅</cite></a></dd>
						</dl>
					</li>
				</ul>
			</div>
		</div>
		<!-- 左侧导航 -->
		<div class="layui-side layui-bg-black">
			<div class="user-photo">
			<br>
				<p><span class="userName">欢迎登录</span></p>
				<p style="height:60%;display:inline-block;vertical-align:middle;float:left"><span class="userName" style="display:inline-block;width:80%;word-wrap:break-word;white-space:normal;white-space:normal;">${sessionInfo.getDWMC()}</span></p>
			</div>
			<div class="navBar layui-side-scroll"></div>
		</div>
		<!-- 右侧内容 -->
		<div class="layui-body layui-form">
			<div class="layui-tab marg0" lay-filter="dwbodyTab">
				<ul class="layui-tab-title top_tab">
					<li class="layui-this" lay-id=""><i class="layui-icon">&#xe68e;</i> <cite>营业厅首页</cite></li>
				</ul>
				<div class="layui-tab-content clildFrame">
					<div class="layui-tab-item layui-show">
						<iframe src="page/dwmain.html"></iframe>
					</div>
				</div>
			</div>
		</div>
		<!-- 底部 -->
		<div class="layui-footer footer">
			<p>copyright @2017 延边公积金管理中心   版权所有</p>
		</div>
	</div>


	<!-- 移动导航 -->
	<div class="site-tree-mobile layui-hide"><i class="layui-icon">&#xe602;</i></div>
	<div class="site-mobile-shade"></div>

	<script type="text/javascript" src="layui/layui.js"></script>
	<script type="text/javascript" src="js/dwnav.js"></script>
	<script type="text/javascript" src="js/leftNav.js"></script>
	<script type="text/javascript" src="js/dwindex.js"></script>
	<script type="text/javascript" src="layui/layui/jquery-3.2.1.min.js"></script>
	<script type="text/javascript">
	$("#tclogin").click(function(){
		window.location.href='/wsyyt';
	});
		function getPath() {  
	     
	        return 'http://'+location.host;
	}
	var length;
	$.ajax({
	url:getPath() + "/wsyyt/xtxxcontroller/test",
	method:'post',
	success:function(res){
	res=JSON.parse(res);
	$("#sp").html(res.data.length);
	length=res.data.length;
	if(length!='0')
	window.setInterval(index, 1000); //让index 多久循环一次 
	$("#sp").replaceWith( $("#sp").html(data.body.RETDATA.length));
	}
	})
	
	function index(){
		if($("#sp").html()!='0'){
			$('.layui-badge').css('color','#03a9f4');  //默认值
			setTimeout(" $('.layui-badge').css('color','#fF0000')",100); //第一次闪烁
			setTimeout( "$('.layui-badge').css('color','#ccc')",200); //第二次闪烁
		}else{
			$("#sp").replaceWith( $("#dbs").html('0'));
		}
	};
	
	
	</script>
</body>
</html>